import PlayerCtrl from "../ctrl/PlayerCtrl";

export default class GameManager{
    static init(){
         console.log("gamemanager init..")
        Laya.Scene3D.load("res/scene/LayaScene_Main/Conventional/Main.ls",new Laya.Handler(null, (scene) => {
            Laya.stage.addChild(scene)
            scene.enableFog = true;
// //设置雾化的颜色
// scene.fogColor = new Laya.Vector3(0,0,0.6);
// //设置雾化的起始位置，相对于相机的距离
// scene.fogStart = 10;
// //设置雾化最浓处的距离。
// scene.fogRange = 40;
// var light:Laya.PointLight = scene.addChild(new Laya.PointLight()) as Laya.PointLight;
// //移动灯光位置
// light.transform.translate(new Laya.Vector3(-3,5,0));
// //设置点光照亮范围
// light.range = 206;
//设置点光的衰减
// light.att = new Laya.Vector3(0.01,0.01,0.03);
            scene.getChildByName("Player").addComponent(PlayerCtrl);
        }));
    }
}